Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump state from 0.5.3 to 0.6.0 #88

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 21, 2023

Bumps state from 0.5.3 to 0.6.0.

Changelog

Sourced from state's changelog.

Version 0.6.0 (May 25, 2023)

Breaking Changes

  • The MSRV is now 1.61.

  • Storage was renamed to InitCell.

    The type was renamed to more accurately reflect its intended use and be more consistent with naming across the ecosystem. Several method names were also changed accordingly:

    • Storage::get_or_set() was renamed to InitCell::get_or_init().
    • Storage::set_or_get() was renamed to InitCell::set_or_init().

    Along with naming changes, the following improvements were made:

    • InitCell<T> can be constructed and used even with T: !Sync + !Send.
    • InitCell<T> impls Send even when T: !Sync.
    • Added InitCell::{wait, reset, take, update}() methods.
  • LocalStorage was renamed to LocalInitCell.

    No other changes were made to the API.

  • Container was renamed to TypeMap.

    The type was renamed to more accurately reflect its intended use and be more consistent with naming across the ecosystem. The following changes were also made:

    • Container![] is neither Sync nor Send.
    • An internal implementation detail was modified to more thoroughly ensure forwards-compatibility with Rust releases. This resulted in several uses of unsafe being removed at the cost of raising the MSRV to 1.61.

General Improvements

  • The crate now uses edition 2021.
  • LocalInitCell::try_get() no longer panics when thread-local storage is not available.
Commits
  • dc6ab62 New version: 0.6.0.
  • 3f0ed2b Resolve warning in 'Box::from_raw()' use.
  • f2c3575 Use 'LocalKey::try_with()' to avoid TLS panics.
  • 9181c79 Use edition 2021.
  • fb1085b Raise CI tested MSRV to 1.61.
  • ca844bc Remove 'Any' const-hack and bump to 0.6-dev.
  • 9d2daa3 Improve 'InitCell' interface.
  • 7870bc1 Rename 'get_or_set' to 'get_or_init'.
  • 1a085c9 Rename 'Container' to 'TypeMap'.
  • dd3dba5 Rename '(Local)Storage' to '(Local)InitCell'.
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Sep 21, 2023
github-actions[bot]
github-actions bot previously approved these changes Sep 21, 2023
@ibigbug ibigbug enabled auto-merge (squash) September 21, 2023 12:26
Bumps [state](https://github.com/SergioBenitez/state) from 0.5.3 to 0.6.0.
- [Changelog](https://github.com/SergioBenitez/state/blob/master/CHANGELOG.md)
- [Commits](SergioBenitez/state@v0.5.3...v0.6.0)

---
updated-dependencies:
- dependency-name: state
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@ibigbug ibigbug merged commit acefa04 into master Oct 16, 2023
4 checks passed
@ibigbug ibigbug deleted the dependabot/cargo/state-0.6.0 branch October 16, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant